package com.gfhd.feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

import javax.annotation.PostConstruct;

@EnableFeignClients
@SpringBootApplication
public class FeignApp {

    @Autowired
    private MyRun2 myRun2;

    private static MyRun2 myRunStatic;

    @PostConstruct
    private void init(){
        myRunStatic = myRun2;
    }

    public static void main(String[] args) {
        SpringApplication.run(FeignApp.class, args);
        myRunStatic.run1();
    }

}
